xen/arm: gic_shutdown_irq must only disable the right IRQ
authorJulien Grall <julien.grall@linaro.org>
Fri, 28 Jun 2013 11:25:57 +0000 (12:25 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 28 Jun 2013 11:35:59 +0000 (12:35 +0100)
commit751554bfc9dc0363fabf882f6e8855022590ec4d
treecea2e284324715e0b20492a107be22aeabb6f06a
parent665ddd98c4d418ced6f303b79b7a6322c69b7247
xen/arm: gic_shutdown_irq must only disable the right IRQ

When GICD_ICENABLERn is read, all the 1s bit represent enabled IRQs.
Currently gic_shutdown_irq:
    - read GICD_ICENABLER
    - set the corresping bit to 1
    - write back the new value
That means, Xen will disable more IRQs than necessary.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/gic.c